package lk.icta.core.entity;

import lk.icta.common.entity.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Duminda Dharmakeerthi
 */

@Entity
@Table(schema = "ELAND_RAIL")
public class Mortgage extends BaseEntity {

    @Column(nullable = false)
    private String nameOfBank;

    @Column(nullable = false)
    private String addressOfBank;

    @Column(nullable = true)
    @Temporal(value = TemporalType.DATE)
    private Date startedDate;

    @Column(nullable = true)
    private int mortgagePeriodInYears;

    @Column(nullable = true)
    private int mortgagePeriodInMonths;

    @Column(nullable = true)
    @Temporal(value = TemporalType.DATE)
    private Date endingDate;

    @Column(nullable = true)
    private String conditions;

    @Column(nullable = true)
    private String powerOfAttorney;

    public String getNameOfBank() {
        return nameOfBank;
    }

    public void setNameOfBank(String nameOfBank) {
        this.nameOfBank = nameOfBank;
    }

    public String getAddressOfBank() {
        return addressOfBank;
    }

    public void setAddressOfBank(String addressOfBank) {
        this.addressOfBank = addressOfBank;
    }

    public Date getStartedDate() {
        return startedDate;
    }

    public void setStartedDate(Date startedDate) {
        this.startedDate = startedDate;
    }

    public Date getEndingDate() {
        return endingDate;
    }

    public void setEndingDate(Date endingDate) {
        this.endingDate = endingDate;
    }

    public String getConditions() {
        return conditions;
    }

    public void setConditions(String conditions) {
        this.conditions = conditions;
    }

    public String getPowerOfAttorney() {
        return powerOfAttorney;
    }

    public void setPowerOfAttorney(String powerOfAttorney) {
        this.powerOfAttorney = powerOfAttorney;
    }

    public int getMortgagePeriodInYears() {
        return mortgagePeriodInYears;
    }

    public void setMortgagePeriodInYears(int mortgagePeriodInYears) {
        this.mortgagePeriodInYears = mortgagePeriodInYears;
    }

    public int getMortgagePeriodInMonths() {
        return mortgagePeriodInMonths;
    }

    public void setMortgagePeriodInMonths(int mortgagePeriodInMonths) {
        this.mortgagePeriodInMonths = mortgagePeriodInMonths;
    }
}
